package cnu.ldc.tts.model;

import java.time.LocalDate;

public class BuyRecord {
private int id;
private int userid;
private String trainId;
private LocalDate date;
private int ticketNumber;
private int totalFares;
public BuyRecord() {

}

public BuyRecord(int id, int userid, String trainId, LocalDate date, int ticketNumber, int totalFares) {
	super();
	this.id = id;
	this.userid = userid;
	this.trainId = trainId;
	this.date = date;
	this.ticketNumber = ticketNumber;
	this.totalFares = totalFares;
}

public String getTrainId() {
	return trainId;
}

public void setTrainId(String trainId) {
	this.trainId = trainId;
}

public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public int getUserid() {
	return userid;
}
public void setUserid(int userid) {
	this.userid = userid;
}
public LocalDate getDate() {
	return date;
}
public void setDate(LocalDate date) {
	this.date = date;
}
public int getTicketNumber() {
	return ticketNumber;
}
public void setTicketNumber(int ticketNumber) {
	this.ticketNumber = ticketNumber;
}
public int getTotalFares() {
	return totalFares;
}
public void setTotalFares(int totalFares) {
	this.totalFares = totalFares;
}

}
